package com.rfid.project.model;

import javax.persistence.*;

import biz.core.IdEntity;

import java.util.Date;

@Entity
public class Outbox extends IdEntity {

	// 发件人
	@ManyToOne
	@JoinColumn(name = "PersonID")
	private People person;

	// 接收人
	@ManyToOne
	@JoinColumn(name = "ReceiverID")
	private People receiver;

	// 发送时间
	private Date sendTime;

	// 消息内容
	private String messageContent;

	// 状态
	private String status;

	public People getPerson() {
		return person;
	}

	public void setPerson(People person) {
		this.person = person;
	}

	public People getReceiver() {
		return receiver;
	}

	public void setReceiver(People receiver) {
		this.receiver = receiver;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public String getMessageContent() {
		return messageContent;
	}

	public void setMessageContent(String messageContent) {
		this.messageContent = messageContent;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}
